/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package seso;

import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 *
 * @author Administrator
 */
@Entity
@Table(name = "EtFileCtyQty", catalog = "M3ERP", schema = "dbo")
@NamedQueries({
    @NamedQuery(name = "EtFileCtyQty.findAll", query = "SELECT e FROM EtFileCtyQty e"),
    @NamedQuery(name = "EtFileCtyQty.findByLineID", query = "SELECT e FROM EtFileCtyQty e WHERE e.lineID = :lineID"),
    @NamedQuery(name = "EtFileCtyQty.findByTransactionNo", query = "SELECT e FROM EtFileCtyQty e WHERE e.transactionNo = :transactionNo"),
    @NamedQuery(name = "EtFileCtyQty.findByCustomerDigitalCode", query = "SELECT e FROM EtFileCtyQty e WHERE e.customerDigitalCode = :customerDigitalCode"),
    @NamedQuery(name = "EtFileCtyQty.findByCustomer", query = "SELECT e FROM EtFileCtyQty e WHERE e.customer = :customer"),
    @NamedQuery(name = "EtFileCtyQty.findByRvSubCustomerCode", query = "SELECT e FROM EtFileCtyQty e WHERE e.rvSubCustomerCode = :rvSubCustomerCode"),
    @NamedQuery(name = "EtFileCtyQty.findByOrderType", query = "SELECT e FROM EtFileCtyQty e WHERE e.orderType = :orderType"),
    @NamedQuery(name = "EtFileCtyQty.findByQuantity", query = "SELECT e FROM EtFileCtyQty e WHERE e.quantity = :quantity")})
public class EtFileCtyQty implements Serializable {
    @Transient
    private PropertyChangeSupport changeSupport = new PropertyChangeSupport(this);
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "LineID")
    private String lineID;
    @Column(name = "TransactionNo")
    private String transactionNo;
    @Column(name = "CustomerDigitalCode")
    private String customerDigitalCode;
    @Column(name = "Customer")
    private String customer;
    @Column(name = "RvSubCustomerCode")
    private String rvSubCustomerCode;
    @Column(name = "OrderType")
    private Character orderType;
    @Column(name = "Quantity")
    private Integer quantity;

    public EtFileCtyQty() {
    }

    public EtFileCtyQty(String lineID) {
        this.lineID = lineID;
    }

    public String getLineID() {
        return lineID;
    }

    public void setLineID(String lineID) {
        String oldLineID = this.lineID;
        this.lineID = lineID;
        changeSupport.firePropertyChange("lineID", oldLineID, lineID);
    }

    public String getTransactionNo() {
        return transactionNo;
    }

    public void setTransactionNo(String transactionNo) {
        String oldTransactionNo = this.transactionNo;
        this.transactionNo = transactionNo;
        changeSupport.firePropertyChange("transactionNo", oldTransactionNo, transactionNo);
    }

    public String getCustomerDigitalCode() {
        return customerDigitalCode;
    }

    public void setCustomerDigitalCode(String customerDigitalCode) {
        String oldCustomerDigitalCode = this.customerDigitalCode;
        this.customerDigitalCode = customerDigitalCode;
        changeSupport.firePropertyChange("customerDigitalCode", oldCustomerDigitalCode, customerDigitalCode);
    }

    public String getCustomer() {
        return customer;
    }

    public void setCustomer(String customer) {
        String oldCustomer = this.customer;
        this.customer = customer;
        changeSupport.firePropertyChange("customer", oldCustomer, customer);
    }

    public String getRvSubCustomerCode() {
        return rvSubCustomerCode;
    }

    public void setRvSubCustomerCode(String rvSubCustomerCode) {
        String oldRvSubCustomerCode = this.rvSubCustomerCode;
        this.rvSubCustomerCode = rvSubCustomerCode;
        changeSupport.firePropertyChange("rvSubCustomerCode", oldRvSubCustomerCode, rvSubCustomerCode);
    }

    public Character getOrderType() {
        return orderType;
    }

    public void setOrderType(Character orderType) {
        Character oldOrderType = this.orderType;
        this.orderType = orderType;
        changeSupport.firePropertyChange("orderType", oldOrderType, orderType);
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        Integer oldQuantity = this.quantity;
        this.quantity = quantity;
        changeSupport.firePropertyChange("quantity", oldQuantity, quantity);
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (lineID != null ? lineID.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof EtFileCtyQty)) {
            return false;
        }
        EtFileCtyQty other = (EtFileCtyQty) object;
        if ((this.lineID == null && other.lineID != null) || (this.lineID != null && !this.lineID.equals(other.lineID))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "seso.EtFileCtyQty[ lineID=" + lineID + " ]";
    }

    public void addPropertyChangeListener(PropertyChangeListener listener) {
        changeSupport.addPropertyChangeListener(listener);
    }

    public void removePropertyChangeListener(PropertyChangeListener listener) {
        changeSupport.removePropertyChangeListener(listener);
    }
    
}
